<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<script language="javascript" type="text/javascript">

</script>

<ul class="breadcrumb">
  <li><a href="./album.do">相册管理 </a> <span class="divider">/</span> </li>
  <li><a href="./falbum.do">家族图片</a> </li>
</ul>
<div style="margin-bottom:20px;">
<form id="form1" class="form-search" method="post" action="falbum.do">
<table>
	<tr>
		<td>
			团长Id: <input type="text" class="input-medium search-query" id="id" name="id" value="${playerId}" >
		</td>
		<td>
			<button type="submit" class="btn" > 查询 </button>
		</td>
	</tr>
</table>
</form>
</div>

<table class="table table-bordered">
  <thead>
    <tr>
      <th width="130px">1</th>
      <th width="130px">2</th>
      <th width="130px">3</th>
      <th width="130px">4</th>
      <th width="130px">5</th>
      <th width="130px">6</th>
      <th width="130px">7</th>
    </tr>
  </thead>
  <tbody>
     <tr>
	  <c:forEach var="album" items="${list}" begin="0" end="6">
	    <td>
	    	<img src="${album.imgUrl}" /><br/>
	    	${album.familyName}<br/>
	    	<form method="post" action="deletef.do?id=${id}&page=${page}">
    			<button type="submit" name="headImg" value="${album.familyId}">删除</button>
    		</form>
	    </td>
	  </c:forEach>
	 </tr>

  	<c:if test="${list.size()>7}"> 
  		<tr>
		  <c:forEach var="album" items="${list}" begin="7" end="13">
		    <td>
		    	<img src="${album.imgUrl}" /><br/>
		    	${album.familyName}<br/>
		    	<form method="post" action="deletef.do?id=${id}&page=${page}">
	    			<button type="submit" name="headImg" value="${album.familyId}">删除</button>
	    		</form>
		    </td>
		  </c:forEach>
	 </tr>
	</c:if>
	
	<c:if test="${list.size()>14}"> 
  		<tr>
		  <c:forEach var="album" items="${list}" begin="14" end="20">
		    <td>
		    	<img src="${album.imgUrl}" /><br/>
		    	${album.familyName}<br/>
		    	<form method="post" action="deletef.do?id=${id}&page=${page}">
	    			<button type="submit" name="headImg" value="${album.familyId}">删除</button>
	    		</form>
		    </td>
		  </c:forEach>
	 </tr>
	</c:if>
  </tbody>
</table>
<tags:page1 page="${page}" pageSize="${pageSize}" total="${total}" url="falbum.do?id=${id}&page="/>
</body>
</html>